﻿using System;
namespace TournamentGenerator.Base.Subscriber
{
	/// <summary>
	/// This class loads and stores the information for a <see cref="ISubscriber"/>
	/// </summary>
	public interface ISubscriberStore
	{
		#region Methods

		/// <summary>
		/// Load all the subscribers.
		/// </summary>
		/// <returns>An enumerable of <see cref="ISubscriber"/> objects.</returns>
		System.Collections.Generic.IEnumerable<ISubscriber> Load();

		/// <summary>
		/// Stores the specifiec subscriber.
		/// </summary>
		/// <param name="item"> <see cref="ISubscriber"/> object which must be stored.</param>
		void Store(ISubscriber item);

		#endregion Methods
	}
}
